"""Main Handler class."""

import os
import tornado.web


class MainHandler(tornado.web.RequestHandler):
    """Main Request Handler for the web server root"""
    def get(self):
        return self.write(self.do_index())

    @classmethod
    def do_index(cls):
        index_fname = os.path.join(os.path.dirname(__file__), '..', 'static', 'index.html')
        return open(index_fname).read()
